﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace GiaoDien
{
    public partial class frm_SaoLuu : DevExpress.XtraEditors.XtraForm
    {
        public frm_SaoLuu()
        {
            InitializeComponent();
        }

        private void btn_NoiLuu_Click(object sender, EventArgs e)
        {
            SaveFileDialog save = new SaveFileDialog();
            save.FileName = "QLThuoc.Bak";
            save.Filter = "File(*.Bak)|*.bak";
            if (save.ShowDialog() == DialogResult.OK)
            {
                txt_NoiLuu.Text = save.FileName;
            }
        }

        private void btn_Luu_Click(object sender, EventArgs e)
        {
            if (txt_NoiLuu.Text == "")
            {
                XtraMessageBox.Show("Bạn chưa chọn đường dẫn để lưu!", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txt_NoiLuu.Focus();
            }
            else
            {

            }
        }
    }
}